<!-- $Id: mshop_frozen_profit_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->

<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>

<div class="form-div">
  <form action="javascript:searchMshop()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    状态：<select name="status">
        <option value=''>全部</option>
        <option value='1'>冻结中</option>
        <option value='2'>已冻结</option>
        <option value='3'>已取消</option>
    </select>
    <?php echo $this->_var['lang']['user_name']; ?>：<input type="text" name="keyword" size="30" />
    订单号：<input type="text" name="order_sn" size="30" />
    <input type="submit" value="<?php echo $this->_var['lang']['button_search']; ?>" class="button" />
  </form>
</div>

<form method="post" action="mshop_payment.php" name="listForm" onsubmit="return confirm(batch_drop_confirm);">
<!-- start mshop list -->
<div class="list-div" id="listDiv">
<?php endif; ?>

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th>
      <!--  <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox" />-->
        <a href="javascript:listTable.sort('frozen_id'); "><?php echo $this->_var['lang']['frozen_id']; ?></a><?php echo $this->_var['sort_frozen_id']; ?></th>
      <th><?php echo $this->_var['lang']['user_name']; ?></th>
      <th>冻结佣金</th>
      <th>商品价格</th>
      <th><a href="javascript:listTable.sort('order_sn'); ">订单号</a><?php echo $this->_var['sort_order_sn']; ?></th>
      <th><?php echo $this->_var['lang']['mobile_phone']; ?></th>
      <th>本店购买</th>
      <th><?php echo $this->_var['lang']['ctime']; ?></th>
      <th><?php echo $this->_var['lang']['status']; ?></th>
      <!--<th><?php echo $this->_var['lang']['handler']; ?></th>-->
    </tr>

    <?php $_from = $this->_var['mshop_frozen_profit_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'frozen');if (count($_from)):
    foreach ($_from AS $this->_var['frozen']):
?>
    <tr>
      <td><!--<input value="<?php echo $this->_var['payment']['frozen_id']; ?>" name="checkboxes[]" type="checkbox">--><?php echo $this->_var['frozen']['frozen_id']; ?></td>
      <td align="left"><?php echo htmlspecialchars($this->_var['frozen']['user_name']); ?></td>
      <td align="center"><?php echo $this->_var['frozen']['frozen_profit']; ?></td>
      <td align="center"><?php echo $this->_var['frozen']['goods_price']; ?></td>
       <td align="center"><?php echo $this->_var['frozen']['order_sn']; ?></td>
       <td align="center"><?php echo $this->_var['frozen']['mobile_phone']; ?></td>
       <td align="center"><?php if ($this->_var['frozen']['myshop']): ?>是<?php else: ?>否<?php endif; ?></td>
       <td align="center"><?php echo $this->_var['frozen']['ctime']; ?></td>
       
       <td align="center"><?php if ($this->_var['frozen']['status'] == 1): ?><?php echo $this->_var['lang']['isfrozen2']; ?><?php elseif ($this->_var['frozen']['status'] == 2): ?>已取消<?php else: ?><?php echo $this->_var['lang']['isfrozen1']; ?><?php endif; ?></td>
<!--      <td align="center">
        <a href="mshop_payment.php?act=edit&amp;id=<?php echo $this->_var['payment']['frozen_id']; ?>" title="<?php echo $this->_var['lang']['edit']; ?>"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>
        <a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['payment']['frozen_id']; ?>,'<?php echo $this->_var['lang']['drop_confirm']; ?>')" title="<?php echo $this->_var['lang']['remove']; ?>"><img src="images/icon_drop.gif" border="0" height="16" width="16" /></a>     
         </td>-->
    </tr>
    <?php endforeach; else: ?>
    <tr><td class="no-records" colspan="13"><?php echo $this->_var['lang']['no_records']; ?></td></tr>
    <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </table>

  <table cellpadding="4" cellspacing="0">
    <tr>
      <td>
      <input type="hidden" name="act" value="batch" /></td>
      <td align="right"><?php echo $this->fetch('page.htm'); ?></td>
    </tr>
  </table>

<?php if ($this->_var['full_page']): ?>
</div>
<!-- end mshop list -->
</form>

<script type="text/javascript" language="JavaScript">
<!--
  listTable.recordCount = <?php echo $this->_var['record_count']; ?>;
  listTable.pageCount = <?php echo $this->_var['page_count']; ?>;

  <?php $_from = $this->_var['filter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
  listTable.filter.<?php echo $this->_var['key']; ?> = '<?php echo $this->_var['item']; ?>';
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

  
  onload = function()
  {
    document.forms['searchForm'].elements['keyword'].focus();

    startCheckOrder();
  }

  /**
   * 搜索团购活动
   */
  function searchMshop()
  {
    var keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
    listTable.filter['keyword'] = keyword;
	var order_sn = Utils.trim(document.forms['searchForm'].elements['order_sn'].value);
    listTable.filter['order_sn'] = order_sn;
	var status = Utils.trim(document.forms['searchForm'].elements['status'].value);
    listTable.filter['status'] = status;
    listTable.filter['page'] = 1;
    listTable.loadList("mshop_frozen_profit_list");
  }
  
//-->
</script>

<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>